<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title> <?= $title;?></title>	
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="keywords" content="<?= $metakey;?>" />
	<meta name="description" content="<?= $metades;?>"/>
	<!--CSS-->
	<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>temp/css/style.css" />
    <script type="text/javascript" src="<?php echo base_url();?>temp/js/jquery1.8.3.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>temp/js/dropdown.js"></script>
    <link href="<?= $favicon ?>" rel="shortcut icon" type="image/x-icon" />     
    <?php 
        $script=$this->Home_model->get_data('network',array('show'=>1,'type'=>'Content'),array(),array('order','DESC'),'',array('header_script'));
        if(!empty($script)){
            foreach($script as $script){
            $netscript = str_replace('[{userid}]',$this->session->userdata('user')->id,$script->header_script);
            $netscript = str_replace('[{email}]',$this->session->userdata('user')->email,$netscript);
            $netscript = str_replace('[{username}]',$this->session->userdata('user')->username,$netscript);           
            echo $netscript;
        }
        }
    ?>  
</head>
<script>
$(document).ready(function(){
    
});
</script>
<body>
	<!--Main Container - Centers Everything-->
	<div id="container">  
    <!--Header-->
        <div id="header" class="clearfix">
            <div id="Cheader" class="clearfix">
                <div id="logo" class="clearfix">
                    <img src="<?= $logo ?>"/>
                </div>                
                <span class="block hbogoc htrai"></span>
                <span class="block hbogoc hphai"></span>
                
            </div>
        </div><!-- end header--> 
        <!-- start nav menu-->
        <div id="menu">
            <span class="canhnav block ntrai"></span>
            <ul id="nav"  class="clearfix block">            
                <?php $this->load->controller('mod_categories/mod_categories/index');?>              
            
            </ul> 
            <span class="canhnav block nphai"></span>
        </div>  <!-- end menu-->   
        
        
 	    <div id="wraper">
    		<!--Main Content-->
    		<div id="Content" class="clearfix">
                
                <div class="clearfix">
                    <div class="boxct">
                        <span class="block brshadow leftsd"></span>                        
                        <div class="boxcl_head"></div>                        
                        <div class="clearfix">
                        <!-- content here-->
                            <?php echo $content;?>
                        
                        <!-- endcontent here--> 
                        </div>                        
                        <span class="block brshadow rightsd"></span>
                        <!--- bottom boxshadow-->
                        <div class="shdobo"></div>
                        <span class="block shdobor leftsdd"></span>
                        <span class="block shdobor rightsdd"></span>                        
                    </div>
                   
                </div>
                
                                
                <div class="boxnw">
                    <div class="boxnw_title">
                        <span class="block boxnwtitle">NETWORK</span>
                    </div>
                    <div class="boxnw_content">
                        <?= $network ?>
                    </div>
                    <div class="boxnw_bot">
                    
                    </div>
                </div>
    		
    		  
    		</div>	
            
            <!--Footer-->
    		<div id="footer">
                <div class="line-footer"></div>			
                <div class="cfooter clearfix">
                    <div class="contentf fct1 left">
                        <?= $footer ?>
                    </div>
                    <div class="fct2 left">
                        <ul class="block">
                            <span class="block stats linkft">Links</span>
                            <li> <a href="#">Contact Us </a></li>
                            <li><a href="#">Fraud Policy </a></li>
                            <li><a href="#">Privacy Policy</a></li>
                            <li><a href="#">Terms Of Service</a></li>
                        </ul>
                    
                    </div>
                    <div class="fct3 left">
                        <ul class="block">
                            <span class="block stats">SITE STATS</span>
                            <li>Total Members: <span class="cfvalu">23242</span></li>
                            <li>Members Online: <span class="cfvalu">23242</span></li>
                            <li>Offers: <span class="cfvalu">23242</span></li>
                            <li>Points paid: <span class="cfvalu">23.242.564</span></li>
                        </ul>
                    
                    </div>
                </div>
                <span class="block footerg leftf"></span>
                <span class="block footerg rightf"></span>
    		</div>
      </div><!--end wraper-->
	</div><!-- end contaner-->
    <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds -- {memory_usage} </p>
    <!-- google anatyleic-->
    <script>
    <?= $google ?>
    </script>	
</body>
</html>


